import { type App } from "vue"
const commonDirectives = import.meta.glob("./common/*.ts")

export default (app: App) => {
  for (const path in commonDirectives) {
    commonDirectives[path]().then((module: any) => {
      const component = module.default
      app.directive(component.name, component)
    })
  }
}
